package cn.cream4u.ksks.acMapper;

import cn.cream4u.ksks.adPojo.*;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ClassMapper {

    @Insert("insert into class(class_name, room_name, start_time, end_time, head_teacher, create_time, update_time)" +
            " values (#{className},#{roomName},#{startTime},#{endTime},#{headTeacher},now(),now())")
    void addClass(AClass clazz);


    void deleteClass(Integer[] kk);

    List<ClassPojo2> selectClass(int page, int pagesize, String name, String beginTime, String endTime);

    List<ClassPojo3> selectAll();
    List<ClassPojo4>selectJob(Integer job);
    void change(ClassPojo5 pojo);



}
